﻿<%@ Page Language="C#" MasterPageFile="~/Shared.Master" AutoEventWireup="true" CodeBehind="postlist.aspx.cs" Inherits="Lawyer.Web.postlist" Title="Legal Firm Management System V1.0" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="SideBar" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="mainContent" runat="server">
    <div class="main-content">
        <header>
                            
                            <h2>
                                Post List
                            </h2>
                        </header>
        <section class="container_6 clearfix">
                            <div class="grid_6">

                                
                                <asp:GridView ID="gridView" CssClass="display" runat="server" AllowPaging="True" Width="100%" CellPadding="3"  OnPageIndexChanging ="gridView_PageIndexChanging"
                    BorderWidth="1px" DataKeyNames="" OnRowDataBound="gridView_RowDataBound"
                    AutoGenerateColumns="false" PageSize="10"  RowStyle-HorizontalAlign="Center" OnRowCreated="gridView_OnRowCreated">
                    <Columns>
                    
                            
		                    <asp:BoundField DataField="PostID" HeaderText="PostID" ReadOnly="false" Visible="false" /> 		   
                            <asp:HyperLinkField HeaderText="Title" ItemStyle-CssClass="zoombox" DataNavigateUrlFields="PostID" DataNavigateUrlFormatString="postshow.aspx?id={0}"
                                                    DataTextField="Tile"  />
<%--                            <asp:BoundField DataField="ShortDes" HeaderText="Detail" />--%>
		                    <asp:BoundField DataField="CreatedDate" HeaderText="Created Time" />
		                    <asp:BoundField DataField="UpdatedDate" HeaderText="Last updated" />
		                    
<%--                            <asp:HyperLinkField HeaderText="Update"  ItemStyle-CssClass="zoombox"   DataNavigateUrlFields="PostID" DataNavigateUrlFormatString="admin_postupdate.aspx?id={0}"
                                Text="Update"  />
                           <asp:HyperLinkField HeaderText="Delete" ItemStyle-CssClass="zoombox" DataNavigateUrlFields="PostID" DataNavigateUrlFormatString="admin_postshow.aspx?id={0}"
                                Text="Delete"  />
--%> 
                        </Columns>
                </asp:GridView>
                            </div>
     </section>
    </div>

</asp:Content>
